<?php
$this->breadcrumbs=array(
	'Collections'=>array('index'),
	$model->id,
);
$this->rmenu = array(
	array('label'=>'Collected','url'=>'collected','id'=>$model->id),
	array('label'=>'View report', 'url'=>array('viewReport','type'=>'html')),
	array('label'=>'View & Edit cargo', 'url'=>array('/cargo/edit','id'=>$model->cargo()->id)),
);
$this->menu=array(
	array('label'=>'List collection', 'url'=>array('index')),
	array('label'=>'Create collection', 'url'=>array('create')),
	array('label'=>'Update collection', 'url'=>array('update', 'id'=>$model->id)),
);
?>

<h1>View collection from <?php echo $model->company; ?></h1>
<div class="view ui-corner-all">
<?php
	$this->widget('zii.widgets.CDetailView', array(
    'data'=>$model,
    'attributes'=>array(
        'req_date:date',             
        'company',        
        'consignee',  
		'complete_date',
		array(
			'label'=>'Packages',
			'value'=>CHtml::encode($model->pkg()->qty.' '),
		),
		array(
			'label'=>'Weight',
			'value'=>CHtml::encode($model->pkg()->wt.' '),
		),
		array(
			'label'=>'M3',
			'value'=>CHtml::encode($model->pkg()->m3.' M3'),
		),
		array(
			'label'=>'Status',
			'value'=>'status',
		),
    ),
));
?>
</div>
<?php //$this->renderPartial('_view',array('data'=>$model)); ?>
<hr />